package com.hc.mapper;

import com.hc.domain.Technology;
import com.hc.domain.User;
import com.hc.query.TechnologyVO;
import com.hc.query.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: hecai
 * @date: 2021/11/9 11:17
 * @description:
 */
@Mapper
public interface TechnologyMapper {
    /**
     * 根据id删除技术
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Long id);

    int insert(Technology record);

    int insertSelective(Technology record);

    Technology selectByPrimaryKey(Long id);


     String selectTidByPrimaryKey(Long id);
    /**
     * 查询多个技术 ，搜索框模糊查找
     * @return
     */
    List<Technology> selectTechnologysByCondition(TechnologyVO technologyVO);

    int updateByPrimaryKeySelective(Technology record);

    int updateByPrimaryKey(Technology record);

    Technology selectByName(String name);

    List<Technology> getTechnologyByCondition();
    /**
     * 根据用户id启用技术
     * @param id
     * @return
     */
    int avctiveByPrimaryKey(Long id);

    List<Long> selectIdsByName(@Param("names") String[] names);
    /**
     * 根据用户id启用技术
     * @param id
     * @return
     */
    int disabledByPrimaryKey(Long id);
}